/**
 * @Project Name:hoofungson-elk-log
 * @Package Name:cn.hoofungson.framework.elk.log.domain
 * @Since JDK 1.8
 */

package cn.hoofungson.framework.elk.log.domain;

import java.util.Map;

/**
 * @Description: 监控日志上下文
 * @Author 胡松 hoofungson@163.com
 * @Date 2019-08-30 15:56
 * @Version V1.0
 */
public class MonitorLogContext {

    /**
     * 消息码
     * **/
    private String monitorCode;

    /**
     * 上下文消息
     * **/
    private String contextMessage;

    /**
     * 上下文
     * **/
    private Map<String, String> contextContent;

    /**
     * 堆栈
     * **/
    private Throwable throwable;

    public MonitorLogContext() {
    }

    public MonitorLogContext(String monitorCode, String contextMessage) {
        this.monitorCode = monitorCode;
        this.contextMessage = contextMessage;
    }

    public MonitorLogContext(String monitorCode, String contextMessage, Map<String, String> contextContent) {
        this.monitorCode = monitorCode;
        this.contextMessage = contextMessage;
        this.contextContent = contextContent;
    }

    public MonitorLogContext(String monitorCode, String contextMessage, Map<String, String> contextContent, Throwable throwable) {
        this.monitorCode = monitorCode;
        this.contextMessage = contextMessage;
        this.contextContent = contextContent;
        this.throwable = throwable;
    }

    public String getMonitorCode() {
        return monitorCode;
    }

    public void setMonitorCode(String monitorCode) {
        this.monitorCode = monitorCode;
    }

    public String getContextMessage() {
        return contextMessage;
    }

    public void setContextMessage(String contextMessage) {
        this.contextMessage = contextMessage;
    }

    public Map<String, String> getContextContent() {
        return contextContent;
    }

    public void setContextContent(Map<String, String> contextContent) {
        this.contextContent = contextContent;
    }

    public Throwable getThrowable() {
        return throwable;
    }

    public void setThrowable(Throwable throwable) {
        this.throwable = throwable;
    }
}
